solved casting issue from droidgap