fixed type casting error

Change-Id: I74e6854ba6ca6e09c23dcc7e241339d892a6d853