diff --git a/src/plugins/switch/elan/switch_elan.c b/src/plugins/switch/elan/switch_elan.c
index 3ca81645325863a88dca652ebc7daae8da976bd7..91277e6b4180e1e8189219ab80e6fa65ba86beaa 100644
--- a/src/plugins/switch/elan/switch_elan.c
+++ b/src/plugins/switch/elan/switch_elan.c
@@ -662,7 +662,7 @@ int switch_p_job_attach ( switch_jobinfo_t jobinfo, char ***env,
 	/* 
 	 * Tell libelan the key to use for Elan state shmem segment
 	 */
-	if ((id = qsw_statkey (jobinfo)) > 0)
+	if ((id = qsw_statkey ((qsw_jobinfo_t) jobinfo)) > 0)
 		setenvpf (env, "ELAN_STATKEY", "0x%x", id);